<?php

// ---------------------------------------------------------------------------
// Please, don't touch this file.
// If you need to custom this Class, you can edit producto.php
// file overwrite and define new methods
// ---------------------------------------------------------------------------

/**
 * 
 *
 * @Authors Sanchez Raul 
 * @package sisco
 * @subpackage model
 */
class Producto_protoweb extends Sisco_model
{
	public $table      = "productos";
	public $model      = "producto";
	public $has_many   = array('movimiento', 'lote', 'precio', 'detalle_venta', 'historico_producto');
	public $has_one    = array('marca', 'categoria', 'origen', 'medida');
		public $validation = array(
		'descripcion' => array(
			'label' => 'Descripción',
			'rules' => array('trim','required')			
		),
		'ean13' => array(
			'label' => 'EAN-13',
			'rules' => array('trim')
					
		),
		'loteable' => array(
			'label' => 'Es loteable?',
			'rules' => array()
					
		),
		'codigo_interno' => array(
			'label' => 'Código Interno',
			'rules' => array()
		)
	); // $validation
	

	public function __construct($id = NULL)
	{
		parent::__construct($id);
	}

} // Class Producto_protoweb

/* End of file producto_protoweb.php */
/* Location: ./application/models/protoweb/producto_protoweb.php */